package com.ydh.company.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ydh.company.flag.PurchaseOrderFlag;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.util.List;

public class CostAdjustmentMain {
    @ApiModelProperty(name="costAdjustmentId",notes = "成本调整主表id",dataType = "string",required =false)
  private String costAdjustmentMainId;
    @ApiModelProperty(name="costAdjustmentNo",notes = "成本调整单号",dataType = "string",required =true)
  private String costAdjustmentNo;
    @NotBlank(message = "入库日期不能为空",groups = {PurchaseOrderFlag.class})
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",locale = "zh",timezone = "GMT+8")
    @ApiModelProperty(name="transferInDate",notes = "入库日期",dataType = "Timestamp",required =true)
  private java.sql.Timestamp transferInDate;
    @ApiModelProperty(name="repositoryId",notes = "仓库id",dataType = "string",required =true)
  private String repositoryId;
    @ApiModelProperty(name="totalCount",notes = "合计",dataType = "double",required =true)
  private double totalCount;
    @ApiModelProperty(name="stockInType",notes = "入库类型",dataType = "string",required =true)
  private String stockInType;
    @ApiModelProperty(name="stockOutRemark",notes = "成本调整备注",dataType = "string",required =true)
  private String stockOutRemark;
    @ApiModelProperty(name="handledBy",notes = "经办人",dataType = "string",required =true)
  private String handledBy;
    @ApiModelProperty(name="creator",notes = "制单人",dataType = "string",required =true)
  private String creator;
 private  Repository repository;
 private List<CostAdjustmentDetail> list;

    public List<CostAdjustmentDetail> getList() {
        return list;
    }

    public void setList(List<CostAdjustmentDetail> list) {
        this.list = list;
    }

    public Repository getRepository() {
    return repository;
  }

  public void setRepository(Repository repository) {
    this.repository = repository;
  }

    public String getCostAdjustmentMainId() {
        return costAdjustmentMainId;
    }

    public void setCostAdjustmentMainId(String costAdjustmentMainId) {
        this.costAdjustmentMainId = costAdjustmentMainId;
    }

    public String getCostAdjustmentNo() {
    return costAdjustmentNo;
  }

  public void setCostAdjustmentNo(String costAdjustmentNo) {
    this.costAdjustmentNo = costAdjustmentNo;
  }


  public java.sql.Timestamp getTransferInDate() {
    return transferInDate;
  }

  public void setTransferInDate(java.sql.Timestamp transferInDate) {
    this.transferInDate = transferInDate;
  }


  public String getRepositoryId() {
    return repositoryId;
  }

  public void setRepositoryId(String repositoryId) {
    this.repositoryId = repositoryId;
  }

  public double getTotalCount() {
    return totalCount;
  }

  public void setTotalCount(double totalCount) {
    this.totalCount = totalCount;
  }

  public String getStockInType() {
    return stockInType;
  }

  public void setStockInType(String stockInType) {
    this.stockInType = stockInType;
  }


  public String getStockOutRemark() {
    return stockOutRemark;
  }

  public void setStockOutRemark(String stockOutRemark) {
    this.stockOutRemark = stockOutRemark;
  }


  public String getHandledBy() {
    return handledBy;
  }

  public void setHandledBy(String handledBy) {
    this.handledBy = handledBy;
  }


  public String getCreator() {
    return creator;
  }

  public void setCreator(String creator) {
    this.creator = creator;
  }

}
